home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 51
/
051.d81
/
color setup
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
55 lines
10 gosub 1000
50 rem
100 bc=0:sc=0:tc=7:rem initial border, screen, and text color codes
110 deffnup(x)=(x+1)and15
120 poke 650,128:rem all keys auto repeat
130 print "[147]"
140 poke 53280,bc:poke 53281,sc:poke 646,tc:rem set colors
150 print chr$(19) spc(14) "[195]olor [211]etup"
160 print:print spc(18) "[194]y"
170 print:print spc(15) "[206]ick [207]ld"
180 print:print
190 print " [214]alues listed below will produce this"
200 print " [195]olor combination:"
210 print
220 print " [194]order color","[208][207][203][197] 53280,"+str$(bc)+" "
230 print " [211]creen color","[208][207][203][197] 53281,"+str$(sc)+" "
240 print " [212]ext color",
250 if tc<=7 then print "[195]ontrol"+str$(tc+1)+" "
260 if tc>7 then print "[195]ommodore"+str$(tc-7)
270 print:print:print:print " [195]ommands:"
280 print " <1> [195]hanges border color"
290 print " <2> [195]hanges screen color"
300 print " <3> [195]hanges text color"
310 print:print " <[209]> quits this program"
320 get k$:if k$="" then 320
330 if k$="1" then bc=fn up(bc)
340 if k$="2" then sc=fn up(sc)
350 if k$="3" then tc=fn up(tc)
360 if sc=tcthen340:rem skip identical screen and text color combinations
370 if k$="q"thenpoke650,0:goto 500
380 goto 140:rem update display with new colors and corresponding commands
500 open15,8,15,"r0:hello connect=hello connect":input#15,er,er$:close15
501 if er<>63 then print"[147]":end
505 load"hello connect",8
600 :
1000 poke53280, 0:poke53281, 0:print"[147]";
1001 print"[158]LOADSTARpresents"
1002 print"[172][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][187]"
1003 print"[170] [146][165]"
1004 print"[170] C O[160]L[160]O[160]R S E[160]T[160]U[160]P[160] [146][165]"
1005 print"[170] [163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163] [146][165]"
1006 print"[188][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][190]"
1007 print"[158][160]"
1008 print" "
1009 print" Written By Nick Old "
1010 print" "
1011 print"[156] "
1012 print" Copyright 1988 "
1013 print" "
1014 print" "
1015 print" Press (SPACE) to continue. "
1016 print" "
1020 geta$:ifa$<>" "then 1020
1030 return